package com.ning.cloud.user.controller;

import com.ning.cloud.common.exception.ServiceException;
import com.ning.cloud.common.util.Response;
import com.ning.cloud.framework.security.UserContext;
import com.ning.cloud.framework.security.dto.AuthUserDTO;
import com.ning.cloud.user.dto.UserLoginDTO;
import com.ning.cloud.user.dto.UserRegisterDTO;
import com.ning.cloud.user.request.UserLoginRequest;
import com.ning.cloud.user.request.UserRegisterRequest;
import com.ning.cloud.user.service.AdminUserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;

/**
 *
 * @since 2025-09-09
 */
@RestController
@RequestMapping("/product")
@Slf4j
@Tag(name = "商品管理模块")
public class ProductController {


    @GetMapping("/info/{id}")
    @Operation(summary = "查询商品信息")
    public Response<?> info(@PathVariable Integer id){
        HashMap hashMap = new HashMap();
        hashMap.put("id", id);
        return Response.success(hashMap);
    }

    @GetMapping("/detail")
    @Operation(summary = "查询商品信息")
    public Response<?> detail(@PathVariable Integer id){
        HashMap hashMap = new HashMap();
        hashMap.put("id", id);
        return Response.success(hashMap);
    }




}
